package work42;

import java.util.HashSet;
import java.util.Iterator;

/**
 * @Author admin
 * @Date 2019/4/2 15:54
 */
public class Test1 {
    public static void main(String[] args) {
        HashSet<String> hashSet=new HashSet<String>();
        hashSet.add("yi");
        hashSet.add("yi");
        hashSet.add("san");
        Iterator iterator=hashSet.iterator();
        while (iterator.hasNext()){
            System.out.println(hashSet);
        }


    }
}
